package Server.Jsmj.RGCP.QILE;

import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.List;

public class HuBlock {

	public int first;
	public BlockType blockType;

	private HuBlock() {

	}

	public HuBlock(int first, BlockType blockType) {
		this.first = first;
		this.blockType = blockType;
	}

	@Override
	public String toString() {
		String s = first + "|" + blockType;
		return s;
	}

	@Override
	protected HuBlock clone() {
		return new HuBlock(this.first, this.blockType);
	}

	@Override
	public boolean equals(Object obj) {
		if (obj == null) {
			return false;
		}
		if (obj instanceof HuBlock) {
			HuBlock objBlock = (HuBlock) obj;
			if(objBlock.first == this.first && objBlock.blockType.equals(this.blockType)){
				return true;
			}
		}
		return false;
	}

}
